﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="TruckList.aspx.cs" Inherits="Logistics_management.Truck.TruckList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    
    <style type="text/css">
        th{
            background-color:#507CD1;
            border:1px solid white;
        }
        tr{
            border:1px solid gray;
           
        }
       td{
            border:1px solid gray;
       }
    </style>
    <script src="../Scripts/jquery-3.0.0.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".delete").click(function () {
                return confirm("你确定要删除吗？");
            })
        })
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            查询承运车辆
            <div id="hengxian1"></div>
            <div id="heads">
                所属车队：<asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>
                车牌号码：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                车辆类型：<asp:DropDownList ID="DropDownList2" runat="server"></asp:DropDownList>
                车辆状态:<asp:DropDownList ID="DropDownList3" runat="server"></asp:DropDownList>
            </div>
            <table>
                 <th>车队</th>
                <th>车辆编号</th>
                <th>车牌号码</th>
                <th>购车日期</th>
                 <th>车辆类型</th>
                <th>车身长度</th>
                <th>吨位/吨</th>
                <th>工作状态</th>
                 <th>创建时间</th>
                <th>修改时间</th>
                <th>备注</th>
                 <th>操作</th>
               
        </HeaderTemplate>

        <ItemTemplate>
           
            <tr>
                <td><%# Convert.ToInt32(Eval("TeamName"))==1?"魏国":Convert.ToInt32(Eval("TeamName"))==1?"蜀国":"吴国" %></td>
                 <td><%#Eval("TruckID") %></td>
                 <td><%#Eval("Number") %></td>
                 <td><%#Eval("BuyDate") %></td>
                 <td><%#Eval("Type") %></td>
                 <td><%#Eval("Length") %></td>
                 <td><%#Eval("Tonnage") %></td>
                 <td><%#Convert.ToInt32( Eval("State"))==1?"休息中":"在工作" %></td>
                 <td><%#Eval("CheckInTime") %></td>
                 <td><%#Eval("AlterTime") %></td>
                <td> <textarea><%#Eval("Remark") %></textarea></td>
               
                <td> <a href="#">编辑</a> <a href="../MyHandler/DeleteTruckHandler.ashx?TruckID=<%# Eval("TruckID") %>" class="delete">删除</a></td>
            </tr>
        </ItemTemplate>

        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
